/*
 * 
 *
 * Authors: Soeren Gebbert, soeren.gebbert@vti.bund.de
 *          Axel Don, axel.don@vti.bund.de
 *
 * Copyright:
 *
 * Johann Heinrich von Thünen-Institut
 * Institut für Agrarrelevante Klimaforschung
 *
 * Phone: +49 (0)531 596 2601
 *
 * Fax:+49 (0)531 596 2699
 *
 * Mail: ak@vti.bund.de
 *
 * Bundesallee 50
 * 38116 Braunschweig
 * Germany
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef permutation_event_H
#define permutation_event_H

#include <vector>
#include <iostream>
#include <string>
#include <fstream>
#include "event_base.h"

class permutation_event : public event_base {
public:
    permutation_event(); 
    permutation_event(std::string filename); 
    /**
     * Read the parameter from the parameter file
     * @return 
     */
    virtual bool read_parameter();
    /** @descr Check the timestep and modify the particles event specific
     * @param timestep
     * @param init_params
     * @param run_params
     * @param mc
     * @param cb
     * @return 
     */
    virtual bool modify_particles(unsigned int timestep, initial_parameters *init_params, 
                                  runtime_parameters *run_params,
                                  std::vector<micr_cluster*> &mc, 
                                  std::vector<carb_particle*> &cp);
    
protected:
    double depth; // The depth of particle permutation
};
#endif
